 <#setting time_zone="${timeZone}" >
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/message/messageConfigLookUp" onsubmit="return dialogSearch(this)">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent" >
                <li><label><@label key="messageCode.C,colon">消息编码：</@label></label> <input type="text" name="messageCode" value="${condition.messageCode!''}" /></li>
                <li>
                    <label><@label key="instantMessageFlag.C,colon">站内消息：</@label></label> <select name="instantMessageFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.instantMessageFlag?? && condition.instantMessageFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.instantMessageFlag?? && condition.instantMessageFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                    </select>
                </li>
                <li>
                    <label><@label key="emailMessageFlag.C,colon">邮件消息：</@label></label> <select name="emailMessageFlag" >
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.emailMessageFlag?? && condition.emailMessageFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.emailMessageFlag?? && condition.emailMessageFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                    </select>
                </li>
            </ul>
            <ul class="searchContent">               
                <li >
                    <label><@label key="shortMessageFlag.C,colon">手机短信：</@label></label><select name="shortMessageFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.shortMessageFlag?? && condition.shortMessageFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.shortMessageFlag?? && condition.shortMessageFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                    </select>
                </li>
                <li >
                    <label><@label key="wechatMessageFlag.C,colon">微信消息：</@label></label><select name="wechatMessageFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.wechatMessageFlag?? && condition.wechatMessageFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.wechatMessageFlag?? && condition.wechatMessageFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                    </select>
                </li>
                <li >
                    <label><@label key="smartWatchMessageFlag.C,colon">智能手表消息：</@label></label><select name="smartWatchMessageFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.smartWatchMessageFlag?? && condition.smartWatchMessageFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.smartWatchMessageFlag?? && condition.smartWatchMessageFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                    </select>
                </li>
            </ul>
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <table class="table border" width="100%" layoutH="155">
        <thead>
            <tr>
                <th width="100" orderField="messageCode"<#if (page.orderField?? && page.orderField == 'messageCode')>class="${page.orderDirection!''}"</#if>><@label key="messageCode.C">消息编号</@label></th>
                <th width="60" orderField="instantMessageFlag"<#if (page.orderField?? && page.orderField == 'instantMessageFlag')>class="${page.orderDirection!''}"</#if>><@label key="instantMessageFlag.C">站内消息</@label></th>
                <th width="60" orderField="emailMessageFlag"<#if (page.orderField?? && page.orderField == 'emailMessageFlag')>class="${page.orderDirection!''}"</#if>><@label key="emailMessageFlag.C">邮件消息</@label></th>
                <th width="60" orderField="shortMessageFlag"<#if (page.orderField?? && page.orderField == 'shortMessageFlag')>class="${page.orderDirection!''}"</#if>><@label key="shortMessageFlag.C">手机短信</@label></th>
                <th width="60" orderField="wechatMessageFlag"><@label key="wechatMessageFlag.C">微信消息</@label></th>
                <th width="60" orderField="smartWatchMessageFlag"><@label key="smartWatchMessageFlag.C">智能手表消息</@label></th>
                <th width="100" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="100" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
                <th width="100" orderField="modifyUser"<#if (page.orderField?? && page.orderField == 'modifyUser')>class="${page.orderDirection!''}"</#if>><@label key="modifyUser.C">修改人</@label></th>
                <th width="100" orderField="modifyDateTime"<#if (page.orderField?? && page.orderField == 'modifyDateTime')>class="${page.orderDirection!''}"</#if>><@label key="modifyDateTime.C">修改时间</@label></th>
                <th width="100"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as message>
            <tr target="message_code" rel="${message.messageCode!''}">
                <td>${message.messageCode!''}</td>
                <td><#if message.instantMessageFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td><#if message.emailMessageFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td><#if message.shortMessageFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td><#if message.wechatMessageFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td><#if message.smartWatchMessageFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td>${message.createUser!''}</td>
                <td>${(message.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${message.modifyUser!''}</td>
                <td>${(message.modifyDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td><a class="btnSelect bringBack" value="{messageCode:'${message.messageCode!''}',messageText:'${message.messageCode!''}'}" >选择</a></td>
            </tr>
            </#list> <#else>
            <tr target="resource_id">
                <td colspan="9" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
                </td>
            </tr>
            </#if> <#else>
            <tr target="resource_id">
                <td colspan="9" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
</div>